package com.example.mapper;

import com.example.entity.ProductEntity;
import com.example.entity.ProductSearchEntity;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface ProductMapper {
    public List<ProductEntity> findAll();

    public List<ProductEntity> productSearch(ProductSearchEntity productSearch);

    int productSearchCount(ProductSearchEntity productSearch);

    boolean update(ProductEntity productEntity);

    boolean insert(ProductEntity productEntity);

    boolean delete(int id);
}
